home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / kcl / akcl / kcl.lha / uts / readme.doc < prev   
Text File  |  1987-05-08  |  4KB  |  135 lines

  1. This file includes following files.
  2.  
  3.      (1)cmpinclude.h      include file
  4.          (2)object.h          include file
  5.      (3)ild.c             ild for uts
  6.          (4)kcl.c             invoking kcl
  7.          (5)lc.c              invoking kcl compiler
  8.          (6)lc1.c             invoking kcl compiler
  9.          (7)lcs1.c            invoking kcl compiler
  10.          (8)make_cmpnew       makefile for cmpnew directory
  11.          (9)make_lsp          makefile for lsp directory
  12.         (10)make_o            makefile for o directory
  13.         (11)make_unixport     makefile for unixport directory
  14.         (12)readme            this file
  15.         (13)unixsave.c        unixsave.c for uts
  16.         (14)uts_chtab.s       char_table for uts
  17.  
  18.            PORTING PROCEDURE
  19.  
  20.    You should check the "dslimit" parameter of your site. If the parameter
  21. is 1 MB, you should contact with your site manager and change the value to
  22. 3MB or more.
  23.  
  24.           STEP 1
  25.    You have to load kcl system from MT by following commands.
  26.         tapevary on 370m       (370 is our MTunit No., need replace)
  27.         tape -b -d 1600 kcl    (kcl is dummy device name)
  28.         tar -xo kcl
  29.  
  30.           STEP 2
  31.    Copy object.h and cmpinclude.h in this file to h directory.
  32.         mv ../h/cmpinclude.h ../h/cmpinclude.old
  33.         mv ../unixport/cmpinclude.h ../unixport/cmpinclude.old
  34.         cat cmpinclude.h>../h/cmpinclude.h
  35.         cat cmpinclude.h >../unixport/cmpinclude.h
  36.         mv ../h/object.h ../h/object.old
  37.         cat object.h >../h/object.h
  38.  
  39.   Copy unixsave.c and uts_chtab.s to c directory.
  40.         mv ../c/unixsave.c ../c/unixsave.c.old
  41.         cat unixsave.c >../c/unixsave.c
  42.         cat uts_chtab.s >../c/uts_chtab.s
  43.  
  44.   Copy makefiles to proper directory.
  45.         mv ../o/makefile ../o/makefile.org
  46.         cp make_o ../o/makefile
  47.         mv ../lsp/makefile ../lsp/makefile.org
  48.         cp make_lsp ../lsp/makefile
  49.         mv ../cmpnew/makefile ../cmpnew/makefile.org
  50.         cp make_cmpnew ../cmpnew/makefile
  51.         mv ../unixport/makefile ../unixport/makefile.org
  52.         cp make_unixport ../unixport/makefile
  53.  
  54.                STEP 3
  55.   Copy cmpinclude.h into /usr/include.
  56.         su
  57.         cp cmpinclude.h /usr/include/cmpinclude.h
  58.  
  59.                STEP 4
  60.   Now is the time to MAKE. You have to use "dpp" in attbin directory
  61.         cd ../attbin
  62.         cc -o dpp -DUNIX dpp.c
  63.         cd ../o
  64.         make
  65.         cd ../lsp
  66.         make
  67.         cd ../cmpnew
  68.         make
  69.         cd ../unixport
  70.         make
  71.  
  72.                       STEP 5
  73.   You should compile ild.c and put the object in unixport directory.
  74.         cd ../uts
  75.         cc -o ../unixport/ild ild.c -lld
  76.  
  77.               STEP 6
  78.   You should compile kcl.c,lc.c,ic1.c and lcs1.c. Before compiling those
  79. files, you have to check and change KCL_SELF and SYSTEM_DIRECTORY.
  80.         cc -o kcl kcl.c
  81.         cc -o lc  lc.c
  82.         cc -o lc1 lc1.c
  83.         cc -o lcs1 lcs1.c
  84.  
  85.   After compiling these files, you have to the objects in /usr/bin directory.
  86. This directory may be site dependent.
  87.         cp kcl /usr/bin/kcl
  88.         cp lc  /usr/bin/lc
  89.         cp lc1 /usr/bin/lc1
  90.         cp lcs1 /usr/bin/lcs1
  91.  
  92.  
  93. Thats all you should do. 
  94.  
  95.          NOTE
  96.  
  97. 1) cmpinclude.h and object.h has the following enum declaration,
  98.    
  99.        enum type
  100.         { t_cons,
  101.           t_start = t_cons,
  102.  
  103.    A bug lives in C compiler of UTS and the compiler fails to compile
  104. this statement.
  105.    "cmpinclude.h" and "object.h" in this directory is changed to avoid
  106. this problem. Folloing code is safe.
  107.  
  108.        enum type {
  109.           t_cons = 0,
  110.           t_start = t_cons,
  111.  
  112. 2) There lives another bug in C compiler. Following three files should be 
  113.    compiled without -O option.
  114.        unixfsys.c
  115.        pathname.c        (derived from pathname.d)
  116.        read.c            (derived from read.d)
  117.  
  118. 3) Original unixsave.c includes <sys/file.h>. 
  119.    For UTS, you have to include <fcntl.h> for <sys/file.h>
  120.  
  121.  
  122.  
  123.  Files in this directory are changed following above notes.
  124.  
  125. If KCL/UTS does not work, please contact.
  126.  
  127.           Akiumi Hasegawa
  128.           Department of Earth Sciences
  129.           Nagoya University
  130.           464,Furo-cho,Chikusa-ku,
  131.           Nagoya-shi,
  132.           (052)-781-5111(ex.6664)
  133.           a49915@ccut.u-tokyo.junet
  134.  
  135.